//
//  MDOSLBSAuthMamager.h
//  MDOSLBS
//
//  Created by KaiChe on 2020/11/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MDOSLBSAuthMamager : NSObject

+ (instancetype)sharedInstance;


// 高德api Key 当 baseApi == MDOSLBSLocationBaseApiGaode时必须设置该值
@property (nonatomic, strong) NSString *gaodeApiKey;
// 百度 key 当 baseApi == MDOSLBSLocationBaseApiGaode时必须设置该值
@property (nonatomic, strong) NSString *baiduKey;

//为 nil 表示 百度鉴权成功
@property (nonatomic, readonly, strong) NSError *baiduAuthError;

/// 获取定位权限
/// @param authBlock 获取结果回调
///          open 定位服务是否可用
///          authStatus 系统权限
///          isLocalServerEnable 定位服务是否可用
///

- (void)requestToLBSAuth:(void (^)(BOOL open, CLAuthorizationStatus authStatus, BOOL isLocalServerEnable))authBlock;


@end

NS_ASSUME_NONNULL_END
